<template>
  <ul class="news_list">
    <li>编号：{{ params.id }}</li>
    <li>标题：{{ params.title }}</li>
    <li>内容：{{ params.content }}</li>
  </ul>
</template>

<script lang="ts" setup name="Details">
import { toRefs } from 'vue';
import { useRoute} from 'vue-router';

const route = useRoute()
const {params} = toRefs(route)
// console.log(route);


</script>

<style scoped>
.news_list{
  list-style: none;
  padding-left: 20px;
  height: 300px;
  width: 600px;
  border-radius: 10px;
  border: 3px solid skyblue;
  padding: 10px 20px;

}
.news_list li{
  line-height: 30px;
  font-size: 18px;
}
</style>